package cn.zhaoyuening.zshop4j.common.bean;

import java.io.Serializable;

/**
 * Created by Zhao on 2017/4/7.
 */
public class EasyUiTreeNode implements Serializable{
    private Long id;
    private String text;
    private String state;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getState() {
        return state;
    }

    public void setState(boolean isClosed) {
        if (isClosed){
            this.state = "closed";
        }else{
            this.state = "open";
        }
    }
}
